selection model: Add sanity checks
authorMatthias Clasen <mclasen@redhat.com>
Wed, 13 Feb 2019 13:38:30 +0000 (08:38 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 13 Feb 2019 13:38:30 +0000 (08:38 -0500)
commitf4b26af2554aa546740409ef2da91a62397cd159
treed79c8f5e9f9b8bda017fc900c5084baaa757e26c
parent2bd93303c4fde5e3b2c7490f7cdb55b5c9d47d6a
selection model: Add sanity checks

It is easy to emit wrong ::selection-changed signals,
and then bad things will usually happen later. Add
some sanity checks to gtk_selection_model_selection_changed
to make this easier to track down.
gtk/gtkselectionmodel.c